package com.wfcm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.wfcm.dao.WfCardCourseRelationDao;
import com.wfcm.entity.WfCardCourseRelationEntity;
import com.wfcm.service.WfCardCourseRelationService;



@Service("wfCardCourseRelationService")
public class WfCardCourseRelationServiceImpl implements WfCardCourseRelationService {
	@Autowired
	private WfCardCourseRelationDao wfCardCourseRelationDao;
	
	@Override
	public WfCardCourseRelationEntity queryObject(Integer id){
		return wfCardCourseRelationDao.queryObject(id);
	}
	
	@Override
	public List<WfCardCourseRelationEntity> queryList(Map<String, Object> map){
		return wfCardCourseRelationDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return wfCardCourseRelationDao.queryTotal(map);
	}
	
	@Override
	public void save(WfCardCourseRelationEntity wfCardCourseRelation){
		wfCardCourseRelationDao.save(wfCardCourseRelation);
	}
	
	@Override
	public void update(WfCardCourseRelationEntity wfCardCourseRelation){
		wfCardCourseRelationDao.update(wfCardCourseRelation);
	}
	
	@Override
	public void delete(Integer id){
		wfCardCourseRelationDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		wfCardCourseRelationDao.deleteBatch(ids);
	}

	@Override
	public List<Integer> queryCardIdByCourseId(Integer courseId) {
		return wfCardCourseRelationDao.queryCardIdByCourseId(courseId);
	}

}
